﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using HengTong.Model.Db;
using HengTong.Model;
using HengTong.Model.Db.Other;


namespace HengTong.ViewModel.Activity.SysActivityListVms
{
    public partial class SysActivityListTemplateVm : BaseTemplateVM
    {
        [Display(Name = "活动名称")]
        public ExcelPropety ActivityNameExcel = ExcelPropety.CreateProperty<SysActivityList>(x => x.ActivityName);
        [Display(Name = "开始时间")]
        public ExcelPropety StartTimeExcel = ExcelPropety.CreateProperty<SysActivityList>(x => x.StartTime);
        [Display(Name = "结束时间")]
        public ExcelPropety EndTimeExcel = ExcelPropety.CreateProperty<SysActivityList>(x => x.EndTime);
        [Display(Name = "活动状态")]
        public ExcelPropety ActivityStatusExcel = ExcelPropety.CreateProperty<SysActivityList>(x => x.ActivityStatus);
        [Display(Name = "允许参加次数")]
        public ExcelPropety MaxJoinCountExcel = ExcelPropety.CreateProperty<SysActivityList>(x => x.MaxJoinCount);

	    protected override void InitVM()
        {
        }

    }

    public class SysActivityListImportVm : BaseImportVM<SysActivityListTemplateVm, SysActivityList>
    {

    }

}
